package fr.upstlse.glre.client.widgets;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;

public class FileUpload extends Composite {
	private Label label;
	private com.google.gwt.user.client.ui.FileUpload fileupload;
	
	public FileUpload(String pLabel, String pName) {
		label = new Label(pLabel + ": ");
		fileupload = new com.google.gwt.user.client.ui.FileUpload();
		fileupload.setName(pName);
		HorizontalPanel lPanel = new HorizontalPanel();
		lPanel.add(label);
		lPanel.add(fileupload);
		initWidget(lPanel);
	}

	public Label getLabel() {
		return label;
	}

	public void setLabel(Label label) {
		this.label = label;
	}

	public com.google.gwt.user.client.ui.FileUpload getFileupload() {
		return fileupload;
	}

	public void setFileupload(com.google.gwt.user.client.ui.FileUpload fileupload) {
		this.fileupload = fileupload;
	}
}
